package com.smyh.UIM;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * Created by 姜龙 on 2016/6/20.
 */
public class CustomViewPager extends ViewPager {
    public CustomViewPager(Context context) {
        super(context);
    }

    public CustomViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    /**
     * @param ev return false 禁用左右滑动切换
     * @return
     */
    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return false;
    }
    /**
     * @param arg0 return false 禁用左右滑动切换
     * @return
     */
    @Override
    public boolean onTouchEvent(MotionEvent arg0) {
        return false;
    }
}
